<el-dialog title="新增领用" v-model="addFormDialog">
  <el-form  ref="addForm" :label-width="dialogLabelWidth" :model="addForm" :rules="addRules">
    <el-row>
    	<el-col :span="11"  >
    		<el-form-item label="领用人" prop="app_name">
          <el-select v-model="addForm.app_name" filterable placeholder="请选择领用人">
            <el-option v-for="(value,key) in app_names" :label="value" :value="value"></el-option>
          </el-select>
        </el-form-item>
     </el-col>
    </el-row>
    
    <el-row>
    	<el-col :span="11">
        <el-form-item label="用途" prop="application">
          <el-input v-model="addForm.application"placeholder="请填写用途" ></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="11">
        <el-form-item label="用品名称" prop="name">
          <el-select v-model="addForm.name" placeholder="请选择用品名称" @change="nameChange">
            <el-option v-for="(value,key) in names" :label="value" :value="value"></el-option>
          </el-select>
        </el-form-item>
      </el-col>
    </el-row>
    
    <el-row>
    	<el-col :span="11">  
        <el-form-item label="规格" prop="specification">
          <el-select v-model="addForm.specification" placeholder="请选择物品规格" @change="specChange">
            <el-option v-for="(value,key) in specifications" :label="value" :value="value"></el-option>
          </el-select>
        </el-form-item>
      </el-col>
      <el-col :span="11">  
        <el-form-item label="物品单位" prop="unit">
          <el-select v-model="addForm.unit" placeholder="请选择物品单位" @change="unitChange">
            <el-option v-for="(value,key) in units" :label="value" :value="value"></el-option>
          </el-select>
        </el-form-item>
      </el-col>
    </el-row>
    
    <el-row>
    	<el-col :span="11">
        <el-form-item label="领用数量" prop="use_num">
          <el-input-number v-model.number="addForm.use_num" :min="1" :max="maxNum"></el-input-number>
        </el-form-item>
      </el-col>
      <el-col :span="11">  
        <el-form-item label="领用时间" prop="use_time">
          <el-date-picker v-model="addForm.use_time" type="datetime" placeholder="选择领用时间" 
           style="max-width:200px;" :editable="false" @change="addUseTime">
          </el-date-picker>
        </el-form-item>
      </el-col>
    </el-row>
    
    <el-row>
    	<el-col :span="22">  
        <el-form-item label="备注" prop="remark">
          <el-input type="textarea" :rows="4" v-model="addForm.remark" placeholder="请填写备注"></el-input>
        </el-form-item>
    	</el-col>
    </el-row>
  </el-form>

  <div slot="footer" class="dialog-footer">
   <include file="Common:_add" />
  </div>

</el-dialog>
